import request from '@/utils/request'

const apiUrl = '/api/employee-reinstatement'

export function saveEmployeeReinstatement(data) {
  return request({
    url: `${apiUrl}/save`,
    method: 'post',
    data
  })
}

export function batchSaveEmployeeReinstatement(data) {
  return request({
    url: `${apiUrl}/batch-save`,
    method: 'post',
    data
  })
}

export function getEmployeeReinstatementList(params) {
  return request({
    url: `${apiUrl}/list`,
    method: 'get',
    params
  })
}

export function getEmployeeReinstatementById(id) {
  return request({
    url: `${apiUrl}/${id}`,
    method: 'get'
  })
}

export function deleteEmployeeReinstatement(id) {
  return request({
    url: `${apiUrl}/${id}`,
    method: 'delete'
  })
} 